# -*- coding: utf-8 -*-
"""
@Time ： 2023/9/15 14:00
@Auth ： y.h
@File ：cost_entity.py
@IDE ：PyCharm
@Motto：The sooner you start to code, the longer the program will take. —— Roy Carlson
"""


class cost_entity:
    __code = None
    __cost = None
    __answer = None

    # getter and setter
    def get_code(self):
        return self.__code

    def set_code(self, code):
        self.__code = code
        return self

    def get_cost(self):
        return self.__cost

    def set_cost(self, cost):
        self.__cost = cost
        return self

    def get_answer(self):
        return self.__answer

    def set_answer(self, answer):
        self.__answer = answer
        return self

    def get_entity_list(self) -> list:
        return [self.__code,
                self.__cost,
                self.__answer]
